package semiproject.models;

import java.text.SimpleDateFormat;
import java.util.Date;

public class PaperVO {
	private String gsEmail;
	private String gsFName;
	private String gsLName;
	private String gsPNo;
	private String title;
	private String absP;
	private String attach;
	private String writer;
	private String panel;
	private String comment;
	private String pComment;
	private String regDate;
	private int score1;
	private int score2;
	private int score3;
	private int score4;
	
	public PaperVO(String gsEmail, String gsFName, String gsLName, 
			String title, String absP, String attach, String writer) {
		this.gsEmail = gsEmail;
		this.gsFName = gsFName;
		this.gsLName = gsLName;
		this.title = title;
		this.absP = absP;
		this.attach = attach;
		this.writer = writer;
	}

	public String getGsEmail() {
		return gsEmail;
	}

	public void setGsEmail(String gsEmail) {
		this.gsEmail = gsEmail;
	}

	public String getGsFName() {
		return gsFName;
	}

	public void setGsFName(String gsFName) {
		this.gsFName = gsFName;
	}

	public String getGsLName() {
		return gsLName;
	}

	public void setGsLName(String gsLName) {
		this.gsLName = gsLName;
	}

	public String getGsPNo() {
		return gsPNo;
	}

	public void setGsPNo(String gsPNo) {
		this.gsPNo = gsPNo;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAbsP() {
		return absP;
	}

	public void setAbsP(String absP) {
		this.absP = absP;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getPanel() {
		return panel;
	}

	public void setPanel(String panel) {
		this.panel = panel;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getpComment() {
		return pComment;
	}

	public void setpComment(String pComment) {
		this.pComment = pComment;
	}

	public String getRegDate() {
		Date now = new Date();
		String fmt = "yyyy.MM.dd - hh:mm:ss";
		SimpleDateFormat sdf = new SimpleDateFormat(fmt);
		return regDate = sdf.format(now);
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}

	public int getScore1() {
		return score1;
	}

	public void setScore1(int score1) {
		this.score1 = score1;
	}

	public int getScore2() {
		return score2;
	}

	public void setScore2(int score2) {
		this.score2 = score2;
	}

	public int getScore3() {
		return score3;
	}

	public void setScore3(int score3) {
		this.score3 = score3;
	}

	public int getScore4() {
		return score4;
	}

	public void setScore4(int score4) {
		this.score4 = score4;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(gsEmail).append("/").append(gsFName).append("/").append(gsLName).
		append("/").append(gsPNo).append("/").append(regDate).append("/").append(title)
		.append("/").append(writer).append("/").append(absP).append("/").append(attach)
		.append("/").append(panel).append("/").append(pComment).append("/").append(comment)
		.append(score1).append("/").append(score2).append("/").append(score3).append("/")
		.append(score4).append("/");
		return sb.toString();
	}
}
